package cn.flying.cloud.message.core.strategy;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import cn.flying.cloud.message.bo.MsgStorageBo;
import cn.flying.cloud.message.core.enums.SendType;
import cn.flying.cloud.message.model.MessageRequest;

/**
 * 消息发送策略接口
 *
 * @author: admin
 * @date: 2025年03月27日 16:13
 * @version: 1.0
 */
public interface MessageSenderStrategy {
    Logger logger = LoggerFactory.getLogger(MessageSenderStrategy.class);

    /**
     * 发送消息
     *
     * @param request
     * @param sendType
     * @return
     */
    boolean sender(MessageRequest request, MsgStorageBo storage, SendType sendType, boolean html);

    /**
     * 获取名称
     *
     * @return
     */
    String getName();
}    